package cn.kgc.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author YC
 * 管理员登录后台时的表单
 */
@Data
@ApiModel(value = "管理员登录后台时的表单")
public class AdminLoginForm {

    @ApiModelProperty(value = "管理员账号", name = "adminName", required = true)
    @NotBlank(message = "账号不能为空")
    private String adminName;
    @ApiModelProperty(value = "管理员密码", name = "adminPassword", required = true)
    @NotBlank(message = "密码不能为空")
    private String adminPassword;

}
